#include <winhack.h>
#include <aura.h>
extern "C" void * __cdecl ela_malloc(size_t size)
{
    return (PVoid)Aura_malloc((Aura_Int32)size);        
}

extern "C" void * __cdecl ela_realloc(PVoid pMem, size_t NewSize)
{
    return (PVoid)Aura_realloc((Aura_PVoid)pMem, (Aura_Int32)NewSize);
}

extern "C" void __cdecl ela_free(PVoid pMem)
{
    Aura_free((Aura_PVoid)pMem);
}

EXTERN_C BOOL __stdcall _DllMainCRTStartup(
    HANDLE hDllHandle,
    UInt32 dwReason,
    PVoid preserved)
{
    BOOL bRet = TRUE;
    switch (dwReason) {
         case DLL_PROCESS_ATTACH:
            break;
        
        case DLL_PROCESS_DETACH:
            break;
        
        default:
            return FALSE;
    }
    return bRet;
}
